/* This is a simple program that prints some text
 * on the Malta LCD display. It is started with the
 * OS and runs in the background.
 * It will be started after the main command shell,
 * to have that shell as a supervisor and to be able
 * to control and restart it.
 *
 * It uses the ecrire_LCD() and the retarder() API functions.
 */
#include <api.h>

int main(){
        char* text = "PORN-OS OR No OS!";
	char* sub = text;
	while(true){
		if(sub[0] == '\0'){
			//we reached the end of the string, let's start over again
			sub = text;
		}
		//prints the first eight characters of the string pointed by sub
		ecrire_LCD(sub);
		//moves the pointer to the next character
		sub ++;
		//delay
		retarder(20);
	}
        quitter(0);
}
